Documentation
license_keys

Get License Key

get
/v1/license-keys/{id}
Get a license key.
curl -X GET \
    'https://api.polar.sh/v1/license-keys/00000000-0000-0000-0000-000000000000' \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <token>" \
    
Responses
{
  "id": "00000000-0000-0000-0000-000000000000",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "user_id": "00000000-0000-0000-0000-000000000000",
  "user": {
    "id": "00000000-0000-0000-0000-000000000000",
    "public_name": "string",
    "email": "string",
    "avatar_url": "string"
  },
  "benefit_id": "00000000-0000-0000-0000-000000000000",
  "key": "string",
  "display_key": "string",
  "status": "granted",
  "limit_activations": 0,
  "usage": 0,
  "limit_usage": 0,
  "validations": 0,
  "last_validated_at": "2024-11-21T00:00:00.000Z",
  "expires_at": "2024-11-21T00:00:00.000Z",
  "activations": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "license_key_id": "00000000-0000-0000-0000-000000000000",
      "label": "string",
      "meta": {},
      "created_at": "2024-11-21T00:00:00.000Z",
      "modified_at": "2024-11-21T00:00:00.000Z"
    }
  ]
}